﻿using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ext.Net;
using Container = Ext.Net.Container;


namespace KamLib.Controls
{
    [ParseChildren(true, "BoxItems")]
    public class VBoxLayout : global::Ext.Net.VBoxLayout
    {
    }

    public class BR : Container
    {
        [DefaultValue(typeof(Unit), "24")]
        public override Unit Height
        {
            get { return UnitPixelTypeCheck(ViewState["Height"], 24, "Height"); }
            set { base.Height = value; }
        }
    }

    public class HR : Container
    {
        [DefaultValue("x-form-hr")]
        public override string Cls
        {
            get { return ViewState.Try("Cls", "x-form-hr"); }
            set { base.Cls = value; }
        }
    }

    public class HR2 : Container
    {
        [DefaultValue("x-form-hr2")]
        public override string Cls
        {
            get { return ViewState.Try("Cls", "x-form-hr2"); }
            set { base.Cls = value; }
        }
    }


    #region Group

    public class Group : Padding11Panel
    {
        [DefaultValue(true)]
        public override bool FormGroup { get { return true; } set { } }
    }
    public class GroupAccordion : AccordionPanel
    {
        [DefaultValue(true)]
        public override bool FormGroup { get { return true; } set { } }
    }
    public class GroupAnchor : Padding11AnchorPanel
    {
        [DefaultValue(true)]
        public override bool FormGroup { get { return true; } set { } }
    }
    public class GroupFit : Padding2FitPanel
    {
        [DefaultValue(true)]
        public override bool FormGroup { get { return true; } set { } }
    }
    public class GroupForm : Padding11FormPanel
    {
        [DefaultValue(true)]
        public override bool FormGroup { get { return true; } set { } }
    }
    public class GroupHBox : Padding11HBoxPanel
    {
        [DefaultValue(true)]
        public override bool FormGroup { get { return true; } set { } }
    }
    public class GroupHBoxes : Padding11HBoxesPanel
    {
        [DefaultValue(true)]
        public override bool FormGroup { get { return true; } set { } }
    }
    public class GroupVBox : Padding11VBoxPanel
    {
        [DefaultValue(true)]
        public override bool FormGroup { get { return true; } set { } }
    }
    public class GroupVBoxes : Padding11VBoxesPanel
    {
        [DefaultValue(true)]
        public override bool FormGroup { get { return true; } set { } }
    }

    #endregion


    public class Tab0 : LayoutPanel { }
    public class Tab0Accordion : AccordionPanel { }
    public class Tab0Anchor : AnchorPanel { }
    public class Tab0Fit : FitPanel { }
    public class Tab0Form : FormLayoutPanel { }
    public class Tab0HBox : HBoxPanel { }
    public class Tab0HBoxes : HBoxesPanel { }
    public class Tab0VBox : VBoxPanel { }
    public class Tab0VBoxes : VBoxesPanel { }


    public class Tab : Padding1Panel { }
    public class TabAccordion : Padding1AccordionPanel { }
    public class TabAnchor : Padding1AnchorPanel { }
    public class TabFit : Padding2FitPanel { }
    public class TabForm : Padding1FormPanel { }
    public class TabHBox : Padding1HBoxPanel { }
    public class TabHBoxes : Padding1HBoxesPanel { }
    public class TabHBoxes2 : Padding1HBoxes2Panel { }
    public class TabVBox : Padding1VBoxPanel { }
    public class TabVBoxes : Padding1VBoxesPanel { }


    public class Pane : Padding1 { }
    public class PaneAccordion : Padding1Accordion { }
    public class PaneAnchor : Padding1Anchor { }
    public class PaneFit : Padding1Fit { }
    public class PaneForm : Padding1Form { }
    public class PaneHBox : Padding1HBox { }
    public class PaneHBoxes : Padding1HBoxes { }
    public class PaneVBox : Padding1VBox { }
    public class PaneVBoxes : Padding1VBoxes { }


    public class Pane2 : Padding2 { }
    public class Pane2Accordion : Padding2Accordion { }
    public class Pane2Anchor : Padding2Anchor { }
    public class Pane2Fit : Padding2Fit { }
    public class Pane2Form : Padding2Form { }
    public class Pane2HBox : Padding2HBox { }
    public class Pane2HBoxes : Padding2HBoxes { }
    public class Pane2VBox : Padding2VBox { }
    public class Pane2VBoxes : Padding2VBoxes { }

}